package com.ygqh.baby.mapper;
import com.ygqh.baby.po.YgCouponUseDetail;
import com.ygqh.baby.po.YgCouponUseDetailExample;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.model.CouponUseDetailMode;

import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface YgCouponUseDetailMapper {
    int countByExample(YgCouponUseDetailExample example);

	int deleteByExample(YgCouponUseDetailExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgCouponUseDetail record);

	int insertSelective(YgCouponUseDetail record);

	List<YgCouponUseDetail> selectByExample(YgCouponUseDetailExample example);

	YgCouponUseDetail selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgCouponUseDetail record, @Param("example") YgCouponUseDetailExample example);

	int updateByExample(@Param("record") YgCouponUseDetail record, @Param("example") YgCouponUseDetailExample example);

	int updateByPrimaryKeySelective(YgCouponUseDetail record);

	int updateByPrimaryKey(YgCouponUseDetail record);
    
    int countSuper(@Param ("q") String q);
    
    List<YgCouponUseDetail> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q);
    
    YgCouponUseDetail selectCouponUseDetailByOrderId(@Param ("userId") Long userId,@Param ("orderId") String orderId );
    
    List<YgCouponUseDetail> selectCouponUseDetailByShareUserId(@Param ("userId") Long userId,@Param ("shareUserId") Long shareUserId);

	List<CouponUseDetailMode> selectByOrderId(@Param ("orderId") Long orderId);
}



